public final class WebSocketConnection extends WebSocketListener
WebSocketConnection(String app, Function1<String, Unit> onMessage, Function1<Throwable, Unit> onError)
final Unit
connect(String authKey)
Unit
onMessage(WebSocket webSocket, String text)
onFailure(WebSocket webSocket, Throwable t, Response response)
send(String message)
close()
final Boolean
isConnected()
onClosed, onClosing, onMessage, onOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
final Unit connect(String authKey)
Unit onMessage(WebSocket webSocket, String text)
Unit onFailure(WebSocket webSocket, Throwable t, Response response)
final Unit send(String message)
final Unit close()
final Boolean isConnected()